home *** CD-ROM | disk | FTP | other *** search
/ The Programmer Disk / The Programmer Disk (Microforum).iso / xpro / tutor / pro30 / tabcont.txt < prev    next >
Text File  |  1991-02-04  |  10KB  |  247 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.                        CORONADO ENTERPRISES
  7.  
  8.                  TURBO PASCAL TUTOR - Version 2.6
  9.  
  10.  
  11.  
  12. This documentation and the accompanying software, including all of
  13. the example Pascal programs and text files, are protected under
  14. United States copyright law to protect them from unauthorized
  15. commercialization.  This version of the tutorial is distributed
  16. under the shareware concept, which means you are not required to
  17. pay for it.  You are permitted to copy the disks, and pass copies
  18. on to a friend, provided you do not modify any files or omit any
  19. files from the complete package.  In fact, you are encouraged to 
  20. pass complete copies on to friends.  You are permitted to charge
  21. a small fee to cover the costs of duplication, but you are not 
  22. permitted to charge anything for the software itself.
  23.  
  24. If you find the tutorial helpful, you are encouraged to register
  25. with the author and to submit a small fee to help compensate him
  26. for his time and expense in writing it.  We will provide you with
  27. a beautifully printed copy of this tutorial if you sumbit a full 
  28. registration.  See the READ.ME file in the TEXT directory for 
  29. additional details.
  30.  
  31. Whether or not you send a registration fee, feel free to request
  32. a copy of the latest list of available tutorials and a list of 
  33. the authorized Public Domain libraries that distribute our full
  34. line of programming language tutorials.
  35.  
  36.  
  37.                     Gordon Dodrill - Feb 4, 1991
  38.  
  39.  
  40.  
  41.       Copyright (c) 1986, 1988, 1989, 1991, Coronado Enterprises
  42.  
  43.  
  44.                         Coronado Enterprises
  45.                         12501 Coronado Ave NE
  46.                     Albuquerque, New Mexico 87122
  47.  
  48.  
  49.             TURBO PASCAL TUTORIAL - TABLE OF CONTENTS 
  50.  
  51.  
  52. Introduction to the TURBO Pascal tutorial               Page I-1
  53.  
  54.  
  55. Chapter 1 - What is a computer program?                 Page 1-1
  56.  
  57.  
  58. Chapter 2 - Getting started in Pascal.                  Page 2-1
  59.  
  60.      TRIVIAL.PAS     The minimum Pascal program.           2-1
  61.      WRITESM.PAS     Write something out.                  2-3
  62.      WRITEMR.PAS     Write more out.                       2-4
  63.      PASCOMS.PAS     Pascal comments illustration.         2-4
  64.      GOODFORM.PAS    Good formatting example.              2-5
  65.      UGLYFORM.PAS    Ugly formatting example.              2-5
  66.  
  67.  
  68. Chapter 3 - The simple Pascal data types.               Page 3-1
  69.  
  70.      INTVAR.PAS      Integer variables.                    3-2
  71.      INTVAR2.PAS     More integer variables.               3-3
  72.      ALLVAR.PAS      All simple variable types.            3-3
  73.      REALMATH.PAS    Real variable math example.           3-4
  74.      INTMATH.PAS     Integer variable math example.        3-4
  75.      BOOLMATH.PAS    Boolean variable math example.        3-4
  76.      CHARDEMO.PAS    Character variable demonstration.     3-6
  77.      CONVERT.PAS     Data type conversion.                 3-6
  78.      EXTINT.PAS      Extended integer types.               3-6
  79.      EXTREAL.PAS     Extended real types.                  3-7
  80.  
  81.  
  82. Chapter 4 - Pascal loops and control structures.        Page 4-1
  83.  
  84.      LOOPDEMO.PAS    Loop demonstration.                   4-1
  85.      IFDEMO.PAS      Conditional branching.                4-2
  86.      LOOPIF.PAS      Loops and If's together.              4-3
  87.      TEMPCONV.PAS    Temperature conversion.               4-4
  88.      DUMBCONV.PAS    Poor variable names.                  4-4
  89.      REPEATLP.PAS    Repeat until structure.               4-4
  90.      WHILELP.PAS     While structure.                      4-5
  91.      CASEDEMO.PAS    Case demonstration.                   4-5
  92.      BIGCASE.PAS     Bigger case example                   4-6
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104. Chapter 5 - Pascal procedures and functions.            Page 5-1
  105.  
  106.      PROCED1.PAS     Simple procedures.                    5-1
  107.      PROCED2.PAS     Procedures with variables.            5-3
  108.      PROCED3.PAS     Multiple variables.                   5-5
  109.      PROCED4.PAS     Scope of variables.                   5-7
  110.      PROCED5.PAS     Procedure calling procedures.         5-7
  111.      FUNCTION.PAS    An example function.                  5-8
  112.      RECURSON.PAS    An example with recursion.            5-9
  113.      FORWARD.PAS     The forward reference.                5-9
  114.      PROCTYPE.PAS    The procedure type.                   5-10
  115.      FUNCTYPE.PAS    The function type.                    5-11
  116.  
  117.  
  118. Chapter 6 - Arrays, types, constants, & labels.         Page 6-1
  119.  
  120.      ARRAYS.PAS      Simple arrays.                        6-1
  121.      ARRAYS2.PAS     Multiple arrays.                      6-2
  122.      TYPES.PAS       Example of types.                     6-3
  123.      CONSTANT.PAS    Example of constants.                 6-4
  124.      LABELS.PAS      Label illustration.                   6-6
  125.  
  126.  
  127. Chapter 7 - Strings and string procedures.              Page 7-1
  128.  
  129.      STRARRAY.PAS    Pascal strings.                       7-1
  130.      STRINGS.PAS     TURBO Pascal strings.                 7-1
  131.      WHATSTRG.PAS    What is a string?                     7-2
  132.  
  133.  
  134. Chapter 8 - Scalars, subranges, and sets.               Page 8-1
  135.  
  136.      ENTYPES.PAS     Enumerated types.                     8-1
  137.      SUBRANGE.PAS    Scaler operations.                    8-2
  138.      SETS.PAS        Set operations.                       8-3
  139.      FINDCHRS.PAS    Search for characters.                8-4
  140.  
  141.  
  142. Chapter 9 - Records.                                    Page 9-1
  143.  
  144.      SMALLREC.PAS    A small record example.               9-1
  145.      BIGREC.PAS      A large record example.               9-2
  146.      VARREC.PAS      A variant record example.             9-5
  147.  
  148.  
  149. Chapter 10 - Standard Input/Output.                     Page 10-1
  150.  
  151.      WRITELNX.PAS    Generalized output statements.       10-1
  152.      READINT.PAS     Read integers from keyboard.         10-2
  153.      READREAL.PAS    Read reals from keyboard.            10-3
  154.      READCHAR.PAS    Read characters from keyboard.       10-3
  155.      READSTRG.PAS    Read a string from keyboard.         10-4
  156.      PRINTOUT.PAS    Print some data on the printer.      10-4
  157.  
  158.  
  159. Chapter 11 - Files.                                     Page 11-1
  160.  
  161.      READFILE.PAS    Read and display this file.          11-2
  162.      READDISP.PAS    Read and display any file.           11-3
  163.      READSTOR.PAS    Read and store any file.             11-4
  164.      READINTS.PAS    Read an integer data file.           11-6
  165.      INTDATA.TXT     Integer data file.                   11-6
  166.      READDATA.PAS    Read a mixed data file.              11-7
  167.      REALDATA.TXT    Real data file.                      11-7
  168.      BINOUT.PAS      Write a binary file.                 11-8
  169.      BININ.PAS       Read a binary file.                  11-10
  170.  
  171.  
  172. Chapter 12 - Pointers and dynamic allocation.           Page 12-1
  173.  
  174.      POINT.PAS       First pointer example.               12-1
  175.      POINT2.PAS      A new kind of pointer.               12-3
  176.      POINTERS.PAS    Example program with pointers.       12-3
  177.      DYNREC.PAS      Dynamic record allocation.           12-6
  178.      LINKLIST.PAS    An example linked list.              12-8
  179.  
  180.  
  181. Chapter 13 - Units in TURBO Pascal                      Page 13-1
  182.  
  183.      AREAS.PAS       Areas of geometric shapes.           13-1
  184.      PERIMS.PAS      Perimeters of geometric shapes.      13-4
  185.      GARDEN.PAS      User of above units.                 13-4
  186.      SHAPES.PAS      User of above units.                 13-4
  187.  
  188.  
  189. Chapter 14 - Encapsulation & Inheritance                Page 14-1
  190.      ENCAP1.PAS      First Encapsulation                  14-1
  191.      ENCAP2.PAS      More Encapsulation                   14-5
  192.      INHERIT1.PAS    First Inheritance                    14-7
  193.      VEHICLES.PAS    An Object in a Unit                  14-10
  194.      CARTRUCK.PAS    Descendant Objects                   14-10
  195.      INHERIT2.PAS    Inheritance in Use                   14-11
  196.      INHERIT3.PAS    Pointers and Arrays                  14-11
  197.  
  198.  
  199. Chapter 15 - Virtual Methods                            Page 15-1
  200.      VIRTUAL1.PAS    No Virtual Yet                       15-1
  201.      VIRTUAL2.PAS    Virtual Methods in use               15-2
  202.      VIRTUAL3.PAS    Virtuals and Pointers                15-3
  203.      PERSON.PAS      An Ancestor Object                   15-4
  204.      SUPERVSR.PAS    Descendant Objects                   15-4
  205.      EMPLOYEE.PAS    Using Virtual methods                15-5
  206.  
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214. Chapter 16 - Complete example programs.                 Page 16-1
  215.  
  216.      AMORT1.PAS      Start of amortization program.       16-1
  217.      AMORT2.PAS      Better amortization program.         16-1
  218.      AMORT3.PAS      Useable amortization program.        16-1
  219.      AMORT4.PAS      Neat amortization program.           16-1
  220.      AMORT5.PAS      Complete amortization program.       16-2
  221.      LIST.PAS        List Pascal programs.                16-3
  222.      LIST.EXE        Ready to use list program.           16-3
  223.      TIMEDATE.PAS    Get time and date.                   16-3
  224.      SETTIME.PAS     Set a file's time and date.          16-4
  225.      OT.PAS          Directory list program.              16-4
  226.      OT.DOC          How to use OakTree.                  16-4
  227.  
  228.  
  229.  
  230. ABOUT THE AUTHOR
  231. _________________________________________________________________
  232.  
  233. The author of this tutorial began programming in 1961 using FORTRAN
  234. on an IBM 1620.  Since then, most of his career has been involved
  235. with designing digital logic for satellite application.  In 1983,
  236. being somewhat burned out with logic design, he began a study of
  237. some of the more modern programming languages and has since made
  238. a complete career shift to software development.  After learning
  239. Pascal, C was studied, followed by Modula-2 and Ada, and more
  240. recently C++.  Rather than simply learning the syntax of each new
  241. language, modern methods of software engineering were studied and
  242. applied to effectively utilize the languages.  He is currently
  243. employed by a large research and development laboratory where he
  244. continues to study, teach, and apply the newer programming
  245. languages.
  246.  
  247.